package cn.stylefeng.guns.sys.modular.tao.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 订单流水表
 * </p>
 *
 * @author 
 * @since 2019-08-14
 */
@TableName("tao_bill")
public class Bill implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    @TableField("user_id")
    private Long userId;

    /**
     * 交易金额
     */
    @TableField("pay")
    private BigDecimal pay;

    /**
     * 交易时间
     */
    @TableField("pay_time")
    private Date payTime;

    /**
     * 支付方式【0、微信 1、支付宝 2、余额】
     */
    @TableField("pay_way")
    private Integer payWay;

    /**
     * 交易详情【0、支入 1、支出 2、充值会员】
     */
    @TableField("details")
    private Integer details;

    /**
     * 交易状态【0、失败 1、成功 2、待审核】
     */
    @TableField("status")
    private Integer status;

    /**
     * 1、普通用户 2、会员
     */
    @TableField("type")
    private Integer type;

    /**
     * 订单流水号
     */
    @TableField("order_id")
    private String orderId;
    @TableField("unit")
    private String unit;

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public BigDecimal getPay() {
        return pay;
    }

    public void setPay(BigDecimal pay) {
        this.pay = pay;
    }

    public Date getPayTime() {
        return payTime;
    }

    public void setPayTime(Date payTime) {
        this.payTime = payTime;
    }

    public Integer getPayWay() {
        return payWay;
    }

    public void setPayWay(Integer payWay) {
        this.payWay = payWay;
    }

    public Integer getDetails() {
        return details;
    }

    public void setDetails(Integer details) {
        this.details = details;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    @Override
    public String toString() {
        return "Bill{" +
        "id=" + id +
        ", userId=" + userId +
        ", pay=" + pay +
        ", payTime=" + payTime +
        ", payWay=" + payWay +
        ", details=" + details +
        ", status=" + status +
        ", type=" + type +
        ", orderId=" + orderId +
        "}";
    }
}
